// Author: Thomas Davis <thomasalwyndavis@gmail.com>
// Filename: main.js

// Require.js allows us to configure shortcut alias
// Their usage will become more apparent futher along in the tutorial.
require.config({


    paths: {
        jQuery: 'libs/jquery/jquery',
        Underscore: 'libs/underscore/underscore',
        Backbone: 'libs/backbone/backbone',
        Kendo: 'libs/kendo/kendo',
        when: 'libs/when/when',
        Bootstrap: 'libs/bootstrap/js/bootstrap.zichtopbomen.min',
        Gmaps: 'libs/gmaps/gmaps',
        templates: '../templates'
    },
    
    
    shim: {
        'Backbone': {
            //These script dependencies should be loaded before loading
            //backbone.js
            deps: ['Underscore', 'jQuery'],
            //Once loaded, use the global 'Backbone' as the
            //module value.
            exports: 'Backbone'
        },
        'Kendo': {
            deps: ['jQuery'],
            exports: 'Kendo'
        },
        'Bootstrap': {
            deps: ['jQuery'],
            exports: 'Bootstrap'
        }
    }

});



require({
  
    locale: window.vta.settings.language
    
},[
    // Load our app module and pass it to our definition function
    'vta',
    
], function(Vta){

    // The "app" dependency is passed in as "Vta"
    // Again, the other dependencies passed in are not "AMD" therefore don't pass a parameter to this function
    Vta.initialize();

});